package bd;
import java.sql.*;

public class ConnectionFactory {

public Connection getConnection(){
		System.out.print("Conectando ao banco ");
		try{
			
			return DriverManager.getConnection("jdbc:postgresql://127.0.0.1:5432/RP", "postgres","1234");
			
		}catch(SQLException e){
			throw new RuntimeException(e);
		}
	}

}